import { Component } from 'react';
import { Swiper } from 'react-vant';
import './index.less'
class InfoSwiper extends Component {
    render() {
        // console.log(this.props.sliderImage)
        let { sliderImage } = this.props;
        return (
            <div>
                <Swiper autoplay={3000}>
                    {
                        sliderImage.map((item, index) => {
                            return (
                                <Swiper.Item key={index}>
                                    <div className='swiperImg'>
                                        <img src={item} alt="" />
                                    </div>
                                </Swiper.Item>
                            )
                        })
                    }

                </Swiper>
            </div>
        )
    }
}
export default InfoSwiper;